/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xhserver;

/**
 *
 * @author trivo
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {
        // TODO code application logic here
        int port;
        if(args.length > 0) {
            port = Integer.parseInt(args[0]);
        } else {
            System.err.println("The port was not set");
            return;
        }
        new XHServerRunner(port).run();
    }
}
